//
//  TMnothing.swift
//  GZWeibo007
//
//  Created by myd on 15/12/25.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class TMnothing: UITableViewCell {
    private let lab = UILabel()
    internal var num = 0
        {
        didSet
        {
            if num == 0
            {
                lab.text = "没有评论"
                return
            }
            lab.text = "上拉刷新评论"
        }
    }
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setview()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    func setview()
    {
        addSubview(lab)
        lab.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, self.contentView.bounds.height)
        lab.textColor = UIColor.grayColor()
        lab.font = UIFont.systemFontOfSize(12)
        lab.textAlignment = NSTextAlignment.Center
    }
}
